package com.cskaoyan.vo;

import lombok.Data;

/**
 * @author stone
 * @date 2022/03/31 17:30
 */
@Data
public class BaseRespVo<T> {
    T data;
    String msg;
    int code;

    public static <T> BaseRespVo ok(T data) {
        BaseRespVo baseRespVo = new BaseRespVo();
        baseRespVo.setCode(200);
        baseRespVo.setMsg("成功");
        baseRespVo.setData(data);
        return baseRespVo;
    }
}
